package com.sasis.service;

import java.util.Collection;

import com.sasis.model.Permission;
import com.sasis.model.Principal;

public interface PermissionService {
	
	public void authorize(Permission permission);
	
	public boolean validate(Permission permission);
	
	public boolean isAllowCurrentUser(Long id);
	
	public Collection getAllowSubjects(Principal principal);
	
	public Collection getAllowFunctions(Principal principal);
	
	public Collection getAllowHandles(Principal principal);
	
	public Collection getInheritAllowSubjects(Principal principal);
	
	public Collection getInheritAllowFunctions(Principal principal);
	
	public Collection getInheritAllowHandles(Principal principal);
	
}
